package com.itic.appbase.framework.type;

public enum UsersStoreActivityType {
	TJ("001","推荐"),JX("002","精选");
	private String type;
	private String name;
	UsersStoreActivityType(String type,String name){
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static UsersStoreActivityType getUsersStoreActivityType(String type){
		UsersStoreActivityType usersStoreActivityType = null;
		switch(type){
		case"001":
			usersStoreActivityType = UsersStoreActivityType.TJ;
			break;
		case"002":
			usersStoreActivityType = UsersStoreActivityType.JX;
			break;
			default:break;
		}
		return usersStoreActivityType;
	}
}
